import React from 'react'
import { Routes, Route, Outlet } from 'react-router'
import { BrowserRouter, useNavigate, Link, useParams, useSearchParams } from 'react-router-dom'
export default function Home() {
    let navigate= useNavigate()
    return (
        <div>
            <Link to='/home'>回到首页</Link>
            <ul>
                <li onClick={()=>navigate('/home/search')}>搜索</li>
                <li onClick={()=>navigate('/home/local')}>本地</li>
            </ul>
            <Outlet></Outlet>
        </div>
    )
}
